﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Niknak.Services.TaskScheduler.Interfaces.DataModel
{
    public interface IScheduledTask
    {
        string EditPageUrl { get; }

        Guid ScheduledTaskId { get; set; }
        Enums.TaskType TaskType { get; set; }
        string Name { get; set; }
        string DisplayName { get; set; }
        string StartDate { get; set; }
        string EndDate { get; set; }
        string StartTime { get; set; }
        string EndTime { get; set; }
        bool TerminateAtEndTime { get; set; }
        int IntervalType { get; set; }
        long CustomIntervalSeconds { get; set; }
        int RunOnDays { get; set; }
        string CLRType { get; set; }
        string StartArguments { get; set; }
        bool IsActive { get; set; }
        int AllowableDrift { get; set; }
        bool EnableCompletedEvent { get; set; }
        bool EnableLogging { get; set; }

        IScheduledTask GetByTaskId(Guid scheduledTaskId);
        IEnumerable<IScheduledTask> GetAllScheduledTasks();
        bool RemoveByTaskId(Guid scheduledTaskId);
        bool Save();
    }
}
